package com.unhz.taigu.service.impl;

import com.unhz.generator.dao.AreaDictMapper;
import com.unhz.generator.pojo.AreaDict;
import com.unhz.taigu.service.AreaDictService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: 沈佳庆
 * @Description:
 * @Date: Created in 下午 8:22 2018/1/24 0024
 * @Modified By:
 */
@Service
public class AreaDictServiceImpl implements AreaDictService{

    @Autowired
    private AreaDictMapper areaDictMapper;

    @Override
    public List<AreaDict> findArea() {
        return areaDictMapper.findArea();
    }

    @Override
    public List<AreaDict> findCountry(String areaCode) {
        return areaDictMapper.findCountry(areaCode);
    }

    @Override
    public List<AreaDict> findCity(String areaCode){
        return areaDictMapper.findCity(areaCode);
    }

    @Override
    public AreaDict findAreaNameByProvince(String areaCode) {
        return areaDictMapper.findAreaNameByProvince(areaCode);
    }

    @Override
    public AreaDict findAreaNameByCity(String areaCode) {
        return areaDictMapper.findAreaNameByCity(areaCode);
    }

    @Override
    public AreaDict findAreaNameByCountry(String areaCode) {
        return areaDictMapper.findAreaNameByCountry(areaCode);
    }

    @Override
    public List<AreaDict> selectAreaDictAll() {
        return areaDictMapper.selectAreaDictAll();
    }

}
